package com.qf.service.impl;

import com.qf.mapper.DtsOrderMapper;
import com.qf.mapper.StatMapper;
import com.qf.service.DtsOrderService;
import com.qf.vo.DayStatis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @version v1.0
 * @date 2022/5/18
 */
@Service
public class DtsOrderServiceImpl implements DtsOrderService {

    @Autowired
    DtsOrderMapper orderMapper;

    @Autowired
    StatMapper statMapper;
    @Override
    public Integer getTotal() {
        return orderMapper.selectCount(null);
    }

    @Override
    public List<DayStatis> getOrderAmts() {
        return statMapper.getOrderAmts();
    }
}
